package org.secangkirkopipanas.gxtcore.domain.dto;

import java.util.Date;
import java.util.List;

import net.sf.hibernate4gwt.pojo.java5.LazyPojo;

import org.secangkirkopipanas.gxtcore.domain.ILoginResult;
import org.secangkirkopipanas.gxtcore.domain.ISystemUser;

public class LoginResultDTO extends LazyPojo implements ILoginResult {

	private static final long serialVersionUID = 1L;

	private ISystemUser systemUser;

	private Date loginDate;

	private List<String> activityLog;

	public LoginResultDTO() {
	}

	public LoginResultDTO(ISystemUser systemUser, Date loginDate) {
		this.systemUser = systemUser;
		this.loginDate = loginDate;
	}

	public ISystemUser getSystemUser() {
		return systemUser;
	}

	public void setSystemUser(ISystemUser systemUser) {
		this.systemUser = systemUser;
	}

	public Date getLoginDate() {
		return loginDate;
	}

	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	public List<String> getActivityLog() {
		return activityLog;
	}

	public void setActivityLog(List<String> activityLog) {
		this.activityLog = activityLog;
	}

	public void addActivityLog(String log) {
		this.activityLog.add(log);
	}

}
